﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="GoShopping.Register" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="Content/css/bootstrap.min.css" rel="stylesheet" />
    <link href="Content/css/Login.css" rel="stylesheet" />
    <script src="Content/js/Factory.js"></script>
    <script src="Content/js/jquery-1.10.2.min.js"></script>
     
    <script type="text/javascript">
        //注册按钮
        function Register() {
            var username = $('#username').val();
            var pwd = $('#pwd').val();
            var repwd = $('#repwd').val();
            var isCheck = $('#RmMe').is(':checked');
            if (username != "" && pwd != "" && repwd != "" && isCheck != false) {
                if (pwd != repwd) {
                    alert("密码必须一致，请重新输入！")
                } else {
                    var pd = { "t": "4", "username": username, "pwd": pwd };
                    sendAjaxUrl2(pd, "tools/User.ashx", "4")
                }
                
            }
        }
        function cg2(a,b) {
            if (b == "4") {
                alert(a.status)
            }
        }
    </script>
</head>
<body>
    <div class="out">
        <div class="out-left">
            <img src="images/banner.92c693b4..jpg" />
        </div>
        <div class="Login">
            <div class="Login-nav">
                <img src="images/Logo.png" />
                商城登录
            </div>

            <div class="denglu">
                <h2>注册</h2>
                <div style="background: #00CBFD; border-radius: 5px; padding: 2px; width: 50px;"></div>

                <form id="form1" runat="server">
                    <div class="col-12 Login-item">
                        <input type="text" class="form-control form-control-lg input" required="required" id="username" placeholder="请设置账号" />
                    </div>
                    <div class="col-12 Login-item">
                        <input type="password" class="form-control form-control-lg input" required="required" id="pwd" placeholder="请设置密码~" />
                    </div>
                    <div class="col-12 Login-item">
                        <input type="password" class="form-control form-control-lg input" required="required" id="repwd" placeholder="确认密码" />
                    </div>
                    <div class="col-12 Login-item" style="text-align: right;">
                        <input class="form-check-input" type="checkbox" value="" required="required" id="RmMe" />
                        <label class="form-check-label" for="invalidCheck">已同意相关协议和隐私政策</label>
                    </div>
                    <div class="col-12 Login-item">
                        <button  class="btn" style="width: 100%; background: #00CBFD" onclick="Register()">注册</button>
                    </div>
                    <div class="reset">
                        <a href="Login.aspx">去登陆>></a>
                    </div>
                </form>
            </div>

        </div>
    </div>
</body>
</html>
